/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react'
import { Provider } from 'react-redux'
import store from './redux/store/store'
import AppInitialize from './config/initialize'

export default class App extends Component {
  
  render() {
    return (
      //把整个应用包裹在Provider里面，共享所有组件的state，整个应用有且只有一个store
      <Provider store={store}>
        <AppInitialize />
      </Provider>  
    );
  }
}